import request from '@/router/axios';
import qs from 'qs';

//根据父级Id查询所有子级
export const getMenuOfParentId = (data) => request({
    url: '/menu/v1/findChildrenByParentId',
    // url: '/menu/v1/findChildren',
    method: 'post',
    data: qs.stringify(data),
})

//获取所有路由
export const getMenuAll = () => request({
    url: '/menu/v1/findAllMenu',
    method: 'post',
})

//查询所有菜单以及当前角色的菜单
export const getMenuById = (data) => request({
    url: '/menu/v1/findAllMenuById',
    method: 'post',
    data: qs.stringify(data),
})

